package com.hutao.chargingpile.pitfall.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hutao.chargingpile.pitfall.pojo.entity.CpHitch;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 故障管理表 Mapper 接口
 * </p>
 *
 * @author HuTao
 * @since 2023-03-22
 */
@Mapper
public interface CpHitchManagerMapper extends BaseMapper<CpHitch> {

    /**
     * 查看所有故障管理信息
     * @return
     */
    List<CpHitch> findAllHitch(Map<String,Object> map);

    /**
     * 查询总条数
     * @return
     */
    int findCount(Map<String,Object> map);


    /**
     *  Excel导出
     * @return
     */
    List<CpHitch> excelCpHitchDTO();

    /**
     * 批量逻辑删除
     * @param ids
     * @return
     */
    int removeIds(@Param("ids") List ids);

    /**
     * 新增故障信息
     * @param cpHitch
     * @return
     */
    int addCpHitchManager(CpHitch cpHitch);
}
